package com.lancoo.ccas52.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @ClassName WeekDateVo
 * @Description 学期周次信息
 * @Author quin
 * @Date 2023/4/4 10:58
 */
@Data
public class WeekDateVo implements Serializable {

    @ApiModelProperty("总周次")
    private long weekCount;

    @ApiModelProperty("周次对应日期")
    private List<WeekDate> weekDates;

    @Data
    @Accessors(chain = true)
    public static class WeekDate{
        @ApiModelProperty("周次")
        private int week;

        @ApiModelProperty("第一天日期")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
        private LocalDateTime start;

        @ApiModelProperty("周末日期")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
        private LocalDateTime end;
    }
}
